﻿define(
    ['ko'],
    function (ko) {
    	ko.bindingHandlers.i18nBinding = {
            init: function (element, valueAccessor, allBindingsAccessor, viewModel) {
            },
            update: function (element, valueAccessor, allBindingsAccessor, viewModel) {
                var allowed = valueAccessor();

                if(allowed) {
                    $(element).i18n();
                }
            }
        };
        
});